layui.use('carousel', function () {
    var carousel = layui.carousel;
    //建造实例
    carousel.render({
        elem: '#test1'
        , width: '500px' //设置容器宽度
        , height: '200px' //设置容器高度
        , full:'true' //是否全屏轮播,默认false
        // , arrow: 'always' //始终显示箭头和点击按钮
        // ,anim: 'updown' //切换动画方式，可从各个方向滚动
    });
});





layui.use(['rate'], function() {
    var rate = layui.rate;
    //只读
    rate.render({
        elem: '#test9'
        , value: 4
        , readonly: true
    });
    rate.render({
        elem: '#cots_car1'
        , value: 5
        , readonly: true
    });
    rate.render({
        elem: '#cots_car2'
        , value: 4
        , readonly: true
    });
    rate.render({
        elem: '#cots_car3'
        , value: 4.5
        , readonly: true
    });
});